import request from '@/utils/request'


// 查询上传文件列表
export function listFile(params) {
    return request({
      url: '/system/advertisement/list',
      method: 'get',
      params
    })
  }
  
// 新增广告图片
export function uploadFile(data) {
    return request({
      url: '/system/advertisement',
      method: 'post',
      data,
    })
  }

  // 修改上传文件顺序
export function updateSort(data) {
    return request({
      url: '/system/advertisement/update-number',
      method: 'post',
      data
    })
  }
  
  // 删除上传文件
  export function delFile(ids) {
    return request({
      url: `/system/advertisement/${ids}`,
      method: 'delete'
    })
  }
  export function addNotice(data) {
    return request({
      url: `/system/advertisement/notice`,
      method: 'post',
      data
    })
  }

  //   修改通知
  export function editNotice(data) {
    return request({
      url: `/system/advertisement`,
      method: 'put',
      data
    })
  }

